int f(int n)
{
    return n&1;
}


int main()
{

    printf("%d\n",1==f(3));
    printf("%d\n",1==f(-3));
    return 0;
}
